def get_dict_key(source_dict, value):
    for temp_key, temp_value in source_dict.items():
        if (value in temp_value) or (value == temp_value) or (value in temp_value[0]):
            x, y = temp_key.split(',')
            x = x.replace('[', '')
            y = y.replace(']', '')
            return [int(x), int(y)]
    return None


dic1 = {'[1983, 208]': [[2, 3]], '[9, 6]': [[3, 5], [0, 0]], '[8, 8]': [[[6, 2]]]}
dic2 = {'[400, 400]': [0], '[409, 202]': [1], '[582, 341]': [18], '[358, 315]': [35], '[413, 533]': [52],
        '[307, 79]': [2]}
key = get_dict_key(dic1, [6, 2])
print(key)
